package com.mes.cloud.dao;

import com.mes.cloud.entity.SysRoleMenu;
import com.mes.cloud.entity.vo.role.MenuVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 角色菜单关联表
 *
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-08-01 19:39:34
 */
public interface SysRoleMenuDao  extends SelectByIdsMapper<SysRoleMenu>, Mapper<SysRoleMenu>{
    int deleteByRoleId(@Param("roleId") String roleId,
                       @Param("updateDateStr") String updateDateStr,
                       @Param("employeeNo") String employeeNo,
                       @Param("employeeName") String employeeName);

    int batchInsert(List<SysRoleMenu> SysRoleMenuList);

    List<MenuVo> menuList(String roleId);

    List<MenuVo> rolePidList(@Param("roleId") String roleId, @Param("pid") String pid, @Param("platform") String platform);

    void deleteByRoleIdPlatform(@Param("roleId") String roleId,
                                @Param("updateDateStr") String updateDateStr,
                                @Param("employeeNo") String employeeNo,
                                @Param("employeeName") String employeeName,
                                @Param("platform") String platform);
}
